package cn.edu.nju.software.zp13.core.test;

import cn.edu.nju.software.zp13.core.annotation.Element;
import cn.edu.nju.software.zp13.core.annotation.TextNode;
import cn.edu.nju.software.zp13.core.xmlNodeEntity.XmlNodeEntity;

@Element(tagName = "profile")
public class Profile extends XmlNodeEntity {
	@Element
	private String name;
	@Element
	private int age;

	public Profile() {
	}
	
	@TextNode(fatherTagName = "age")
	public String ageToString(){
		return age+"";
	}

	public Profile(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

}
